import java.util.Scanner;

/**
 * @author Administrator
 */
public class task {
    public static void main(String[] args) {
        System.out.println("请输入一个.；");
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        int min=num/60;
        int sec=num%60;
        System.out.println(min+"f"+sec+"m");

        /*Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        if (num%7==0){
            System.out.println(num+"ky");
        }else {
            System.out.println(num+"bky");
        }*/


    }

}
